package com.productserver.service;

import com.productserver.mapper.ProductMapper;
import com.productserver.pojo.Product;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author wjn.
 * @Date 2020/11/13 - 16:34.
 */
@Service
public class ProductService {
    @Resource
    private ProductMapper productMapper;
    public List<Product>getAllProduct(){
        return productMapper.getAll();
    }
}
